package com.fy.fyzf.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.List;

public class HousingDetailBean  {

    /**
     * bigOwner : 0
     * building :
     * buildingId : 0
     * companyId : 0
     * companyName :
     * createTime :
     * decorateFreetime :
     * floorId : 0
     * floorName :
     * floorType : 0
     * followArea :
     * followCommission :
     * followIncreasing :
     * followPrice :
     * followSpecial :
     * followWay :
     * housingArea :
     * housingId : 0
     * housingImages : [{"companyName":"","createTime":"","housingImage":"","housingImageId":0,"userName":""}]
     * housingNo :
     * housingNoNum : {"floor":"","household":"","roomNumber":""}
     * housingNumber :
     * housingPurpose : 0
     * housingStatus : 0
     * propertyFee : 0
     * qualityHouse : 0
     * remark :
     * renovationType : 0
     * rentPrice : 0
     * sellPrice : 0
     * signingYear :
     * subwayName :
     * userId : 0
     * userName :
     */

    private int bigOwner;
    private String building;
    private Integer buildingId;
    private Integer companyId;
    private String companyName;
    private String createTime;
    private String decorateFreetime;

    public String getCollection() {
        return collection;
    }

    public void setCollection(String collection) {
        this.collection = collection;
    }

    private String collection;
    private Integer floorId;
    private String floorName;
    private Integer floorType;
    private String followArea;
    private String followCommission;
    private String followIncreasing;
    private String followPrice;
    private String followSpecial;
    private String followWay;
    private String housingArea;
    private Integer housingId;
    private String housingNo;
    private HousingNoNumBean housingNoNum;
    private String housingNumber;
    private Integer housingPurpose;
    private Integer housingStatus;
    private String propertyFee;
    private Integer qualityHouse;
    private String remark;
    private Integer renovationType;
    private String rentPrice;
    private String sellPrice;
    private String signingYear;
    private String subwayName;
    private Integer userId;
    private String userName;
    private List<HousingImagesBean> housingImages;

    protected HousingDetailBean(Parcel in) {
        bigOwner = in.readInt();
        building = in.readString();
        if (in.readByte() == 0) {
            buildingId = null;
        } else {
            buildingId = in.readInt();
        }
        if (in.readByte() == 0) {
            companyId = null;
        } else {
            companyId = in.readInt();
        }
        companyName = in.readString();
        createTime = in.readString();
        decorateFreetime = in.readString();
        if (in.readByte() == 0) {
            floorId = null;
        } else {
            floorId = in.readInt();
        }
        floorName = in.readString();
        if (in.readByte() == 0) {
            floorType = null;
        } else {
            floorType = in.readInt();
        }
        followArea = in.readString();
        followCommission = in.readString();
        followIncreasing = in.readString();
        followPrice = in.readString();
        followSpecial = in.readString();
        followWay = in.readString();
        housingArea = in.readString();
        if (in.readByte() == 0) {
            housingId = null;
        } else {
            housingId = in.readInt();
        }
        housingNo = in.readString();
        housingNumber = in.readString();
        if (in.readByte() == 0) {
            housingPurpose = null;
        } else {
            housingPurpose = in.readInt();
        }
        if (in.readByte() == 0) {
            housingStatus = null;
        } else {
            housingStatus = in.readInt();
        }
        if (in.readByte() == 0) {
            propertyFee = null;
        } else {
            propertyFee = in.readString();
        }
        if (in.readByte() == 0) {
            qualityHouse = null;
        } else {
            qualityHouse = in.readInt();
        }
        remark = in.readString();
        if (in.readByte() == 0) {
            renovationType = null;
        } else {
            renovationType = in.readInt();
        }
        rentPrice = in.readString();
        sellPrice = in.readString();
        signingYear = in.readString();
        subwayName = in.readString();
        if (in.readByte() == 0) {
            userId = null;
        } else {
            userId = in.readInt();
        }
        userName = in.readString();
    }



    public int getBigOwner() {
        return bigOwner;
    }

    public void setBigOwner(int bigOwner) {
        this.bigOwner = bigOwner;
    }

    public String getBuilding() {
        return building;
    }

    public void setBuilding(String building) {
        this.building = building;
    }

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDecorateFreetime() {
        return decorateFreetime;
    }

    public void setDecorateFreetime(String decorateFreetime) {
        this.decorateFreetime = decorateFreetime;
    }

    public Integer getFloorId() {
        return floorId;
    }

    public void setFloorId(Integer floorId) {
        this.floorId = floorId;
    }

    public String getFloorName() {
        return floorName;
    }

    public void setFloorName(String floorName) {
        this.floorName = floorName;
    }

    public Integer getFloorType() {
        return floorType;
    }

    public void setFloorType(Integer floorType) {
        this.floorType = floorType;
    }

    public String getFollowArea() {
        return followArea;
    }

    public void setFollowArea(String followArea) {
        this.followArea = followArea;
    }

    public String getFollowCommission() {
        return followCommission;
    }

    public void setFollowCommission(String followCommission) {
        this.followCommission = followCommission;
    }

    public String getFollowIncreasing() {
        return followIncreasing;
    }

    public void setFollowIncreasing(String followIncreasing) {
        this.followIncreasing = followIncreasing;
    }

    public String getFollowPrice() {
        return followPrice;
    }

    public void setFollowPrice(String followPrice) {
        this.followPrice = followPrice;
    }

    public String getFollowSpecial() {
        return followSpecial;
    }

    public void setFollowSpecial(String followSpecial) {
        this.followSpecial = followSpecial;
    }

    public String getFollowWay() {
        return followWay;
    }

    public void setFollowWay(String followWay) {
        this.followWay = followWay;
    }

    public String getHousingArea() {
        return housingArea;
    }

    public void setHousingArea(String housingArea) {
        this.housingArea = housingArea;
    }

    public Integer getHousingId() {
        return housingId;
    }

    public void setHousingId(Integer housingId) {
        this.housingId = housingId;
    }

    public String getHousingNo() {
        return housingNo;
    }

    public void setHousingNo(String housingNo) {
        this.housingNo = housingNo;
    }

    public HousingNoNumBean getHousingNoNum() {
        return housingNoNum;
    }

    public void setHousingNoNum(HousingNoNumBean housingNoNum) {
        this.housingNoNum = housingNoNum;
    }

    public String getHousingNumber() {
        return housingNumber;
    }

    public void setHousingNumber(String housingNumber) {
        this.housingNumber = housingNumber;
    }

    public Integer getHousingPurpose() {
        return housingPurpose;
    }

    public void setHousingPurpose(Integer housingPurpose) {
        this.housingPurpose = housingPurpose;
    }

    public Integer getHousingStatus() {
        return housingStatus;
    }

    public void setHousingStatus(Integer housingStatus) {
        this.housingStatus = housingStatus;
    }

    public String getPropertyFee() {
        return propertyFee;
    }

    public void setPropertyFee(String propertyFee) {
        this.propertyFee = propertyFee;
    }

    public Integer getQualityHouse() {
        return qualityHouse;
    }

    public void setQualityHouse(Integer qualityHouse) {
        this.qualityHouse = qualityHouse;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getRenovationType() {
        return renovationType;
    }

    public void setRenovationType(Integer renovationType) {
        this.renovationType = renovationType;
    }

    public String getRentPrice() {
        return rentPrice;
    }

    public void setRentPrice(String rentPrice) {
        this.rentPrice = rentPrice;
    }

    public String getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(String sellPrice) {
        this.sellPrice = sellPrice;
    }

    public String getSigningYear() {
        return signingYear;
    }

    public void setSigningYear(String signingYear) {
        this.signingYear = signingYear;
    }

    public String getSubwayName() {
        return subwayName;
    }

    public void setSubwayName(String subwayName) {
        this.subwayName = subwayName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public List<HousingImagesBean> getHousingImages() {
        return housingImages;
    }

    public void setHousingImages(List<HousingImagesBean> housingImages) {
        this.housingImages = housingImages;
    }


    public static class HousingNoNumBean  {
        /**
         * floor :
         * household :
         * roomNumber :
         */

        private String floor;
        private String household;
        private String roomNumber;

        protected HousingNoNumBean(Parcel in) {
            floor = in.readString();
            household = in.readString();
            roomNumber = in.readString();
        }



        public String getFloor() {
            return floor;
        }

        public void setFloor(String floor) {
            this.floor = floor;
        }

        public String getHousehold() {
            return household;
        }

        public void setHousehold(String household) {
            this.household = household;
        }

        public String getRoomNumber() {
            return roomNumber;
        }

        public void setRoomNumber(String roomNumber) {
            this.roomNumber = roomNumber;
        }



    }

    public static class HousingImagesBean {
        /**
         * companyName :
         * createTime :
         * housingImage :
         * housingImageId : 0
         * userName :
         */

        private String companyName;
        private String createTime;
        private String housingImage;
        private Integer housingImageId;
        private String userName;

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getHousingImage() {
            return housingImage;
        }

        public void setHousingImage(String housingImage) {
            this.housingImage = housingImage;
        }

        public Integer getHousingImageId() {
            return housingImageId;
        }

        public void setHousingImageId(Integer housingImageId) {
            this.housingImageId = housingImageId;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }
    }
}
